<?php

/*
 * Plugin Name: Sochy plugin
 * Plugin Url: http://intechhost.com
 * Description: Test
 * Author: Sochy CHOEUN
 * Version: 1.0
 */
function databaseinfo_dashboard_widget(){
    global $wpdb;
    global $current_user;
    echo $wpdb->num_rows.'<br />';
    echo $current_user->ID.'<br />';
    echo var_dump($wpdb);
}
function dashboard_register_widget(){
    wp_add_dashboard_widget('databaseinfo-dashboard-widget', "Sochy Plugin", 'databaseinfo_dashboard_widget');
}
add_action('wp_dashboard_setup','dashboard_register_widget');
?>
